Skip to main content

All Questions

1vote
1answer
57views

Hit a strange signal settings of a kernel thread in Linux

I am working on an embedded Linux system (kernel-5.10.24), and using busybox as init. Now I hit a strange problem about signal settings of a kernel thread in system. The kernel thread is from a device ...
wangt13's user avatar
2votes
1answer
1kviews

Why does Linux needs both pid_max and threads-max?

I understand the difference between /proc/sys/kernel/pid_max and /proc/sys/kernel/threads-max. There's a good explanation at the answer to Understanding the differences between pid_max, ulimit -u and ...
aviro's user avatar
  • 6,772
0votes
1answer
317views

What starts threads in Linux OS?

I am currently investigate a question related to threads in the Linux OS. I know that processes are started by the scheduler in Linux Kernel, but what starts threads inside a process - Linux Kernel ...
Evil JuniorCplusplus's user avatar
1vote
2answers
2kviews

Is it possible for a kernel space thread or process to be child of a userspace process?

I am kind of a newbie when it comes to the Linux Kernel, but I was reading this article about fibrils where it mentions that they are (or were? not sure if they were ultimately kept in the Kernel) ...
memememe's user avatar
2votes
1answer
1kviews

Are there any tools to view a process' thread control blocks?

Process Control Blocks expose the /proc file system which allows PCBs to be read by users. Is there a similar file system for Thread Control Blocks? If not, is there a tool to read their contents (...
Justin Borromeo's user avatar
3votes
2answers
5kviews

Are tgid and pid ever different for a process or lightweight process?

tgid and pid are the same concept for any process or for any lightweight process. In /proc/${pid}/status, tgid and pid are distinct fields. Are tgid and pid ever different for a process or ...
Tim's user avatar
  • 106k
8votes
2answers
4kviews

Does Linux not distinguish between processes and threads?

As far as I know in Linux kernel, the structure task_struct represents threads i.e. light weight processes, but not processes. processes are not represented by any structure, but by groups of ...
Tim's user avatar
  • 106k
1vote
1answer
2kviews

Is a light weight process attached to a kernel thread in Linux?

Based on my understanding from Understanding the Linux Kernel, is it correct that: kernel threads and light weight processes in Linux kernel are both represented by task_struct structure in C. ...
Tim's user avatar
  • 106k
1vote
3answers
2kviews

How does the kernel knows which "threads"/processes are associated with a process? [duplicate]

As I have read, a "thread" in Linux is just a process. Say that a process created two "threads", now when the process is terminated, the two "threads"/processes that are associated with the process ...
user289588's user avatar
93votes
7answers
38kviews

Are threads implemented as processes on Linux?

I'm going through this book, Advanced Linux Programming by Mark Mitchell, Jeffrey Oldham, and Alex Samuel. It's from 2001, so a bit old. But I find it quite good anyhow. However, I got to a point ...
user avatar
15votes
2answers
47kviews

Understanding the differences between pid_max, ulimit -u and thread_max

I am trying to understand the Linux processes. I'm confused on the respective terms pid_max, ulimit -u and thread_max. What exactly is the difference between these terms? Can someone clarify the ...
Ramesh's user avatar
  • 40.3k
31votes
4answers
15kviews

Are Linux kernel threads really kernel processes?

I've read in many places that Linux creates a kernel thread for each user thread in a Java VM. (I see the term "kernel thread" used in two different ways: a thread created to do core OS work and a ...
Ellen Spertus's user avatar

close